detailed diagram